
package com.hazelcast.internal.util;

import java.util.Arrays;
import java.util.List;

public class DummyNetworkInterfacesEnumerator implements NetworkInterfacesEnumerator {

    private final List<NetworkInterfaceInfo> networkInterfaceInfos;

    public DummyNetworkInterfacesEnumerator(NetworkInterfaceInfo... networkInterfaceInfos) {
        this.networkInterfaceInfos = Arrays.asList(networkInterfaceInfos);
    }

    @Override
    public List<NetworkInterfaceInfo> getNetworkInterfaces() {
        return networkInterfaceInfos;
    }
}
